package com.woniuxy.personal.core.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.woniuxy.personal.core.model.PlOrderitem;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Auther: binhu  <br/>
 * Date: 2021/6/29:20:02  <br/>
 * Description:
 */
@Data
public class OrderVo implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单编号")
    private String ordernumber;

    @ApiModelProperty(value = "创建时间")
    private Date createtime;

    @ApiModelProperty(value = "订单状态,0：待付款，1：待收货，2：待服务，3：待评价，4：待售后，5：已完成")
    private Integer status;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "订单类型")
    private Integer ordertype;

    @ApiModelProperty(value = "软删除")
    private Integer flag;

    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "订单项")
    private List<PlOrderitem> plOrderitems;

    @ApiModelProperty(value = "Json对象")
    private List<OrderitemVo> orderitemVos;

}
